﻿using LinqToBing.Bing.Wrapper.ExtensionMethods;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Xml.Linq;

namespace LinqToBing.Bing.Test
{
    
    
    /// <summary>
    ///This is a test class for XElementExtTest and is intended
    ///to contain all XElementExtTest Unit Tests
    ///</summary>
    [TestClass()]
    public class XElementExtTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for GetBoolFromAttribute
        ///</summary>
        [TestMethod()]
        public void GetBoolFromAttributeTest()
        {
            XElement xelem = null; // TODO: Initialize to an appropriate value
            string sAttributeName = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = XElementExt.GetBoolFromAttribute(xelem, sAttributeName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetBoolFromElement
        ///</summary>
        [TestMethod()]
        public void GetBoolFromElementTest()
        {
            XElement xelem = null; // TODO: Initialize to an appropriate value
            string sElementName = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = XElementExt.GetBoolFromElement(xelem, sElementName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetDateTimeFromAttribute
        ///</summary>
        [TestMethod()]
        public void GetDateTimeFromAttributeTest()
        {
            XElement xelem = null; // TODO: Initialize to an appropriate value
            string sAttributeName = string.Empty; // TODO: Initialize to an appropriate value
            DateTime expected = new DateTime(); // TODO: Initialize to an appropriate value
            DateTime actual;
            actual = XElementExt.GetDateTimeFromAttribute(xelem, sAttributeName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetDateTimeFromElement
        ///</summary>
        [TestMethod()]
        public void GetDateTimeFromElementTest()
        {
            XElement xelem = null; // TODO: Initialize to an appropriate value
            string sElementName = string.Empty; // TODO: Initialize to an appropriate value
            DateTime expected = new DateTime(); // TODO: Initialize to an appropriate value
            DateTime actual;
            actual = XElementExt.GetDateTimeFromElement(xelem, sElementName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetInt32FromAttribute
        ///</summary>
        [TestMethod()]
        public void GetInt32FromAttributeTest()
        {
            XElement xelem = null; // TODO: Initialize to an appropriate value
            string sAttributeName = string.Empty; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = XElementExt.GetInt32FromAttribute(xelem, sAttributeName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetInt32FromElement
        ///</summary>
        [TestMethod()]
        public void GetInt32FromElementTest()
        {
            XElement xelem = null; // TODO: Initialize to an appropriate value
            string sElementName = string.Empty; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = XElementExt.GetInt32FromElement(xelem, sElementName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetInt32FromElementAttribute
        ///</summary>
        [TestMethod()]
        public void GetInt32FromElementAttributeTest()
        {
            XElement xelem = null; // TODO: Initialize to an appropriate value
            string sElementName = string.Empty; // TODO: Initialize to an appropriate value
            string sAttributeName = string.Empty; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = XElementExt.GetInt32FromElementAttribute(xelem, sElementName, sAttributeName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetShortFromAttribute
        ///</summary>
        [TestMethod()]
        public void GetShortFromAttributeTest()
        {
            XElement xelem = null; // TODO: Initialize to an appropriate value
            string sAttributeName = string.Empty; // TODO: Initialize to an appropriate value
            short expected = 0; // TODO: Initialize to an appropriate value
            short actual;
            actual = XElementExt.GetShortFromAttribute(xelem, sAttributeName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetShortFromElement
        ///</summary>
        [TestMethod()]
        public void GetShortFromElementTest()
        {
            XElement xelem = null; // TODO: Initialize to an appropriate value
            string sElementName = string.Empty; // TODO: Initialize to an appropriate value
            short expected = 0; // TODO: Initialize to an appropriate value
            short actual;
            actual = XElementExt.GetShortFromElement(xelem, sElementName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetStringFromAttribute
        ///</summary>
        [TestMethod()]
        public void GetStringFromAttributeTest()
        {
            XElement xelem = null; // TODO: Initialize to an appropriate value
            string sAttributeName = string.Empty; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = XElementExt.GetStringFromAttribute(xelem, sAttributeName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetStringFromElement
        ///</summary>
        [TestMethod()]
        public void GetStringFromElementTest()
        {
            XElement xelem = null; // TODO: Initialize to an appropriate value
            string sElementName = string.Empty; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = XElementExt.GetStringFromElement(xelem, sElementName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetUriFromElement
        ///</summary>
        [TestMethod()]
        public void GetUriFromElementTest()
        {
            XElement xelem = null; // TODO: Initialize to an appropriate value
            string sElementName = string.Empty; // TODO: Initialize to an appropriate value
            Uri expected = null; // TODO: Initialize to an appropriate value
            Uri actual;
            actual = XElementExt.GetUriFromElement(xelem, sElementName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
